home *** CD-ROM | disk | FTP | other *** search
/ Aminet 50 / Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso / Aminet / text / edit / tecoc-146.lha / execti.c < prev    next >
C/C++ Source or Header  |  1991-07-05  |  992b  |  35 lines

  1. /*****************************************************************************
  2.  
  3.     ExeCtI()
  4.  
  5.     This function executes a ^I (control-I or caret-I) command.  This
  6. is equivilent to the I command, except the <TAB> is inserted as well.
  7.  
  8. *****************************************************************************/
  9.  
  10. #include "zport.h"        /* define portability identifiers */
  11. #include "tecoc.h"        /* define general identifiers */
  12. #include "defext.h"        /* define external global variables */
  13. #include "dchars.h"        /* define identifiers for characters */
  14.  
  15. DEFAULT ExeCtI()            /* execute control-I (tab) command */
  16. {
  17.     DBGFEN(1,"ExeCtI",NULL);
  18.  
  19.     if (FindES(ESCAPE) == FAILURE) {    /* find end of text arg */
  20.         DBGFEX(1,DbgFNm,"FAILURE");
  21.         return FAILURE;
  22.     }
  23.  
  24.     if (InsStr(ArgPtr-1, (CBfPtr-ArgPtr)+1) == FAILURE) {
  25.         DBGFEX(1,DbgFNm,"FAILURE");
  26.         return FAILURE;
  27.     }
  28.  
  29.     CmdMod = '\0';                /* clear modifiers flags */
  30.     EStTop = EStBot;            /* clear expression stack */
  31.  
  32.     DBGFEX(1,DbgFNm,"SUCCESS");
  33.     return SUCCESS;
  34. }
  35.